package io.renren.modules.demo.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.common.dao.BaseDao;
import io.renren.common.entity.XlsUserAwardEntity;
import io.renren.common.entity.XlsUserEntity;
import io.renren.modules.demo.dto.XlsUserAwardDTO;
import io.renren.modules.demo.dto.XlsUserDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-03-28
 */
@Mapper
public interface XlsUserDao extends BaseDao<XlsUserEntity> {
    XlsUserEntity getUserByMobile(String mobile);

    XlsUserEntity getUserByUserId(Long userId);

    IPage<XlsUserDTO> queryPage(IPage<XlsUserEntity> page, @Param("ew") Wrapper<XlsUserEntity> queryWrapper);

}